package com.guozhi.demo.dev;

import java.io.IOException;

/**
 * 管理resource目录中的类文件
 */
public interface ManageResourceClass {

    /**
     * 根据配置文件获取指定类的实例
     * @param javaName
     * @return
     */
    Object getObject(String javaName) throws InterruptedException, IOException, ClassNotFoundException, InstantiationException, IllegalAccessException;

    /**
     * 从resource文件中重新加载指定类文件
     * @param javaName
     * @return
     */
    Object reloadObject(String javaName) throws InterruptedException, ClassNotFoundException, InstantiationException, IllegalAccessException, IOException;

}
